<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" 
%><%@ page import="com.google.appengine.api.users.User" 
%><%@ page import="com.google.appengine.api.users.UserService" 
%><%@ page import="com.google.appengine.api.users.UserServiceFactory" 
%><%
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
%><jsp:include page="inc/header.jsp" />
<a href="/transaction">View Transaction</a>

<form action="/transaction/add" method="post">
	<table>
		<tr>
			<td>Type:</td>
			<td>
				<label><input type="radio" name="type" value="EARNING" /> Earning</label>
				<label><input type="radio" name="type" value="EXPENSE" checked="checked"/> Expense</label>
			</td>
		</tr>
		<tr>
			<td>Date:</td>
			<td>
				<input type="text" name="date" class="datepicker" />
			</td>
		</tr>
		<tr>
			<td>Amount:</td>
			<td>
				<input type="text" name="amount" />
			</td>
		</tr>
		<tr>
			<td>Description:</td>
			<td>
				<textarea name="description"></textarea>
			</td>
		</tr>
	</table>
	<input type="submit" value="Add" />
</form>

</div>
<jsp:include page="inc/footer.jsp" />